package com.david.cms.channel.service;

import java.util.List;

import javax.inject.Inject;

import org.springframework.stereotype.Service;

import com.david.basic.model.Pager;

import com.david.cms.dao.IChannelDetailsDao;
import com.david.cms.model.ChannelDetails;

@Service("channelDetailsService")
public class ChannelDetailsService implements IChannelDetailsService{
	private IChannelDetailsDao channelDetailsdao;

	@Inject
	public void setIChannelDetailsDao(IChannelDetailsDao channelDetailsdao) {
		this.channelDetailsdao = channelDetailsdao;
	}
	/**
	 * 添加
	 */
	public ChannelDetails add(ChannelDetails c) {
		// TODO Auto-generated method stub
		return channelDetailsdao.add(c);
	}
	/**
	 * 修改
	 */
	public void update(ChannelDetails c) {
		channelDetailsdao.update(c);
	}
	/**
	 * 删除
	 */
	public void delete(Long id) {
		channelDetailsdao.delete(id);
	}
	/**
	 * 根据id得到对象
	 */
	public ChannelDetails getOne(Long id) {
		// TODO Auto-generated method stub
		return channelDetailsdao.getOne(id);
	}
	/**
	 * 分页查询
	 */
	public Pager<ChannelDetails> getPager() {
		// TODO Auto-generated method stub
		return channelDetailsdao.getPager();
	}
	public List<ChannelDetails> getList() {
		// TODO Auto-generated method stub
		return channelDetailsdao.getList();
	}

}
